
import LanguageMngTs from "../Managers/LanguageMngTs";
import RoomTypes from "./RoomTypes";

export default class RoomConfig{

    public static point;
    public static pool;
    public static deal;

    public static initRooms(){

        let strPractice = LanguageMngTs.getSentence(302)   //Practise
        let strBeginner = LanguageMngTs.getSentence(303)   //Beginner
        let strRookie = LanguageMngTs.getSentence(304)   //Rookie
        let strSkilled = LanguageMngTs.getSentence(305)   //Skilled
        let strSenior = LanguageMngTs.getSentence(306)   //Senior
        let strElite = LanguageMngTs.getSentence(307)   //Elite
        let strStar = LanguageMngTs.getSentence(308)   //Star
        let strMaster = LanguageMngTs.getSentence(309)   //Master
        let strAmazing = LanguageMngTs.getSentence(310)   //Amazing
        let strLegend = LanguageMngTs.getSentence(311)   //Legend
        //管理大厅房间列表
        this.point = [
            { type:RoomTypes.POINTS,id: 0x020, name: strPractice, en_class: 'PointRoom', p_max: 2, multi: 0, e_fee: 0 },
            { type:RoomTypes.POINTS,id: 0x021, name: strBeginner, en_class: 'PointRoom', p_max: 2, multi: 2, e_fee: 160 },
            { type:RoomTypes.POINTS,id: 0x022, name: strRookie, en_class: 'PointRoom', p_max: 2, multi: 10, e_fee: 800 },
            { type:RoomTypes.POINTS,id: 0x023, name: strSkilled, en_class: 'PointRoom', p_max: 2, multi: 50, e_fee: 4000 },
            { type:RoomTypes.POINTS,id: 0x024, name: strSenior, en_class: 'PointRoom', p_max: 2, multi: 100, e_fee: 8000 },
            { type:RoomTypes.POINTS,id: 0x025, name: strElite, en_class: 'PointRoom', p_max: 2, multi: 200, e_fee: 16000 },
            { type:RoomTypes.POINTS,id: 0x026, name: strStar, en_class: 'PointRoom', p_max: 2, multi: 500, e_fee: 40000 },
            { type:RoomTypes.POINTS,id: 0x027, name: strMaster, en_class: 'PointRoom', p_max: 2, multi: 1000, e_fee: 80000 },
            { type:RoomTypes.POINTS,id: 0x028, name: strAmazing, en_class: 'PointRoom', p_max: 2, multi: 2000, e_fee: 160000 },
            { type:RoomTypes.POINTS,id: 0x029, name: strLegend, en_class: 'PointRoom', p_max: 2, multi: 5000, e_fee: 400000 },
            

            { type:RoomTypes.POINTS,id: 0x060, name: strPractice, en_class: 'PointRoom', p_max: 6, multi: 0, e_fee: 0 },
            { type:RoomTypes.POINTS,id: 0x061, name: strBeginner, en_class: 'PointRoom', p_max: 6, multi: 2, e_fee: 160 },
            { type:RoomTypes.POINTS,id: 0x062, name: strRookie, en_class: 'PointRoom', p_max: 6, multi: 10, e_fee: 800 },
            { type:RoomTypes.POINTS,id: 0x063, name: strSkilled, en_class: 'PointRoom', p_max: 6, multi: 50, e_fee: 4000 },
            { type:RoomTypes.POINTS,id: 0x064, name: strSenior, en_class: 'PointRoom', p_max: 6, multi: 100, e_fee: 8000 },
            { type:RoomTypes.POINTS,id: 0x065, name: strElite, en_class: 'PointRoom', p_max: 6, multi: 200, e_fee: 16000 },
            { type:RoomTypes.POINTS,id: 0x066, name: strStar, en_class: 'PointRoom', p_max: 6, multi: 500, e_fee: 40000 },
            { type:RoomTypes.POINTS,id: 0x067, name: strMaster, en_class: 'PointRoom', p_max: 6, multi: 1000, e_fee: 80000 },
            { type:RoomTypes.POINTS,id: 0x068, name: strAmazing, en_class: 'PointRoom', p_max: 6, multi: 2000, e_fee: 160000 },
            { type:RoomTypes.POINTS,id: 0x069, name: strLegend, en_class: 'PointRoom', p_max: 6, multi: 5000, e_fee: 400000 },
           
        ]

        this.pool = [
            { type:RoomTypes.POOL, id: 0x120, name: strPractice+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 101, e_fee: 0 },
            { type:RoomTypes.POOL, id: 0x220, name: strPractice+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 201, e_fee: 0 },
            { type:RoomTypes.POOL, id: 0x160, name: strPractice+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 101, e_fee: 0 },
            { type:RoomTypes.POOL, id: 0x260, name: strPractice+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 201, e_fee: 0 },
            { type:RoomTypes.POOL, id: 0x121, name: strBeginner+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 101, e_fee: 50 },
            { type:RoomTypes.POOL, id: 0x221, name: strBeginner+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 201, e_fee: 50 },
            { type:RoomTypes.POOL, id: 0x161, name: strBeginner+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 101, e_fee: 50 },
            { type:RoomTypes.POOL, id: 0x261, name: strBeginner+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 201, e_fee: 50 },
            { type:RoomTypes.POOL, id: 0x122, name: strRookie+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 101, e_fee: 200 },
            { type:RoomTypes.POOL, id: 0x222, name: strRookie+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 201, e_fee: 200 },
            { type:RoomTypes.POOL, id: 0x162, name: strRookie+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 101, e_fee: 200 },
            { type:RoomTypes.POOL, id: 0x262, name: strRookie+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 201, e_fee: 200 },
            { type:RoomTypes.POOL, id: 0x123, name: strSkilled+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 101, e_fee: 1000 },
            { type:RoomTypes.POOL, id: 0x223, name: strSkilled+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 201, e_fee: 1000 },
            { type:RoomTypes.POOL, id: 0x163, name: strSkilled+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 101, e_fee: 1000 },
            { type:RoomTypes.POOL, id: 0x263, name: strSkilled+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 201, e_fee: 1000 },
            { type:RoomTypes.POOL, id: 0x124, name: strSenior+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 101, e_fee: 10000 },
            { type:RoomTypes.POOL, id: 0x224, name: strSenior+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 201, e_fee: 10000 },
            { type:RoomTypes.POOL, id: 0x164, name: strSenior+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 101, e_fee: 10000 },
            { type:RoomTypes.POOL, id: 0x264, name: strSenior+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 201, e_fee: 10000 },
            { type:RoomTypes.POOL, id: 0x125, name: strElite+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 101, e_fee: 50000 },
            { type:RoomTypes.POOL, id: 0x225, name: strElite+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 201, e_fee: 50000 },
            { type:RoomTypes.POOL, id: 0x165, name: strElite+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 101, e_fee: 50000 },
            { type:RoomTypes.POOL, id: 0x265, name: strElite+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 201, e_fee: 50000 },
            { type:RoomTypes.POOL, id: 0x126, name: strStar+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 101, e_fee: 100000 },
            { type:RoomTypes.POOL, id: 0x226, name: strStar+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 201, e_fee: 100000 },
            { type:RoomTypes.POOL, id: 0x166, name: strStar+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 101, e_fee: 100000 },
            { type:RoomTypes.POOL, id: 0x266, name: strStar+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 201, e_fee: 100000 },
            { type:RoomTypes.POOL, id: 0x127, name: strMaster+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 101, e_fee: 500000 },
            { type:RoomTypes.POOL, id: 0x227, name: strMaster+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 201, e_fee: 500000 },
            { type:RoomTypes.POOL, id: 0x167, name: strMaster+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 101, e_fee: 500000 },
            { type:RoomTypes.POOL, id: 0x267, name: strMaster+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 201, e_fee: 500000 },
            { type:RoomTypes.POOL, id: 0x128, name: strAmazing+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 101, e_fee: 1000000 },
            { type:RoomTypes.POOL, id: 0x228, name: strAmazing+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 201, e_fee: 1000000 },
            { type:RoomTypes.POOL, id: 0x168, name: strAmazing+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 101, e_fee: 1000000 },
            { type:RoomTypes.POOL, id: 0x268, name: strAmazing+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 201, e_fee: 1000000 },
            { type:RoomTypes.POOL, id: 0x129, name: strLegend+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 101, e_fee: 5000000 },
            { type:RoomTypes.POOL, id: 0x229, name: strLegend+'-2', en_class: 'PoolRoom', p_max: 2, s_top: 201, e_fee: 5000000 },
            { type:RoomTypes.POOL, id: 0x169, name: strLegend+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 101, e_fee: 5000000 },
            { type:RoomTypes.POOL, id: 0x269, name: strLegend+'-6', en_class: 'PoolRoom', p_max: 6, s_top: 201, e_fee: 5000000 },
        ]
        for(let i=0;i<this.pool.length;i++){
            let obj = this.pool[i]
            obj.name = LanguageMngTs.getSentence(159)+"-"+obj.s_top //Pool
        }

        this.deal = [
            { type:RoomTypes.DEAL, id: 0x320, name: strPractice+'-2-3', en_class: 'DealRoom', p_max: 2, r_top: 3, e_fee: 0 },
            { type:RoomTypes.DEAL, id: 0x620, name: strPractice+'-2-6', en_class: 'DealRoom', p_max: 2, r_top: 6, e_fee: 0 },
            { type:RoomTypes.DEAL, id: 0x321, name: strBeginner+'-2-3', en_class: 'DealRoom', p_max: 2, r_top: 3, e_fee: 50 },
            { type:RoomTypes.DEAL, id: 0x621, name: strBeginner+'-2-6', en_class: 'DealRoom', p_max: 2, r_top: 6, e_fee: 50 },
            { type:RoomTypes.DEAL, id: 0x322, name: strRookie+'-2-3', en_class: 'DealRoom', p_max: 2, r_top: 3, e_fee: 300 },
            { type:RoomTypes.DEAL, id: 0x622, name: strRookie+'-2-6', en_class: 'DealRoom', p_max: 2, r_top: 6, e_fee: 300 },
            { type:RoomTypes.DEAL, id: 0x323, name: strSkilled+'-2-3', en_class: 'DealRoom', p_max: 2, r_top: 3, e_fee: 2000 },
            { type:RoomTypes.DEAL, id: 0x623, name: strSkilled+'-2-6', en_class: 'DealRoom', p_max: 2, r_top: 6, e_fee: 2000 },
            { type:RoomTypes.DEAL, id: 0x324, name: strSenior+'-2-3', en_class: 'DealRoom', p_max: 2, r_top: 3, e_fee: 10000 },
            { type:RoomTypes.DEAL, id: 0x624, name: strSenior+'-2-6', en_class: 'DealRoom', p_max: 2, r_top: 6, e_fee: 10000 },
            { type:RoomTypes.DEAL, id: 0x325, name: strElite+'-2-3', en_class: 'DealRoom', p_max: 2, r_top: 3, e_fee: 50000 },
            { type:RoomTypes.DEAL, id: 0x625, name: strElite+'-2-6', en_class: 'DealRoom', p_max: 2, r_top: 6, e_fee: 50000 },
            { type:RoomTypes.DEAL, id: 0x326, name: strStar+'-2-3', en_class: 'DealRoom', p_max: 2, r_top: 3, e_fee: 100000 },
            { type:RoomTypes.DEAL, id: 0x626, name: strStar+'-2-6', en_class: 'DealRoom', p_max: 2, r_top: 6, e_fee: 100000 },
            { type:RoomTypes.DEAL, id: 0x327, name: strMaster+'-2-3', en_class: 'DealRoom', p_max: 2, r_top: 3, e_fee: 500000 },
            { type:RoomTypes.DEAL, id: 0x627, name: strMaster+'-2-6', en_class: 'DealRoom', p_max: 2, r_top: 6, e_fee: 500000 },
            { type:RoomTypes.DEAL, id: 0x328, name: strAmazing+'-2-3', en_class: 'DealRoom', p_max: 2, r_top: 3, e_fee: 1000000 },
            { type:RoomTypes.DEAL, id: 0x628, name: strAmazing+'-2-6', en_class: 'DealRoom', p_max: 2, r_top: 6, e_fee: 1000000 },
            { type:RoomTypes.DEAL, id: 0x329, name: strLegend+'-2-3', en_class: 'DealRoom', p_max: 2, r_top: 3, e_fee: 5000000 },
            { type:RoomTypes.DEAL, id: 0x629, name: strLegend+'-2-6', en_class: 'DealRoom', p_max: 2, r_top: 6, e_fee: 5000000 },

            { type:RoomTypes.DEAL, id: 0x360, name: strPractice+'-6-3', en_class: 'DealRoom', p_max: 6, r_top: 3, e_fee: 0 },
            { type:RoomTypes.DEAL, id: 0x660, name: strPractice+'-6-6', en_class: 'DealRoom', p_max: 6, r_top: 6, e_fee: 0 },
            { type:RoomTypes.DEAL, id: 0x361, name: strBeginner+'-6-3', en_class: 'DealRoom', p_max: 6, r_top: 3, e_fee: 50 },
            { type:RoomTypes.DEAL, id: 0x661, name: strBeginner+'-6-6', en_class: 'DealRoom', p_max: 6, r_top: 6, e_fee: 50 },
            { type:RoomTypes.DEAL, id: 0x362, name: strRookie+'-6-3', en_class: 'DealRoom', p_max: 6, r_top: 3, e_fee: 300 },
            { type:RoomTypes.DEAL, id: 0x662, name: strRookie+'-6-6', en_class: 'DealRoom', p_max: 6, r_top: 6, e_fee: 300 },
            { type:RoomTypes.DEAL, id: 0x363, name: strSkilled+'-6-3', en_class: 'DealRoom', p_max: 6, r_top: 3, e_fee: 2000 },
            { type:RoomTypes.DEAL, id: 0x663, name: strSkilled+'-6-6', en_class: 'DealRoom', p_max: 6, r_top: 6, e_fee: 2000 },
            { type:RoomTypes.DEAL, id: 0x364, name: strSenior+'-6-3', en_class: 'DealRoom', p_max: 6, r_top: 3, e_fee: 10000 },
            { type:RoomTypes.DEAL, id: 0x664, name: strSenior+'-6-6', en_class: 'DealRoom', p_max: 6, r_top: 6, e_fee: 10000 },
            { type:RoomTypes.DEAL, id: 0x365, name: strElite+'-6-3', en_class: 'DealRoom', p_max: 6, r_top: 3, e_fee: 50000 },
            { type:RoomTypes.DEAL, id: 0x665, name: strElite+'-6-6', en_class: 'DealRoom', p_max: 6, r_top: 6, e_fee: 50000 },
            { type:RoomTypes.DEAL, id: 0x366, name: strStar+'-6-3', en_class: 'DealRoom', p_max: 6, r_top: 3, e_fee: 100000 },
            { type:RoomTypes.DEAL, id: 0x666, name: strStar+'-6-6', en_class: 'DealRoom', p_max: 6, r_top: 6, e_fee: 100000 },
            { type:RoomTypes.DEAL, id: 0x367, name: strMaster+'-6-3', en_class: 'DealRoom', p_max: 6, r_top: 3, e_fee: 500000 },
            { type:RoomTypes.DEAL, id: 0x667, name: strMaster+'-6-6', en_class: 'DealRoom', p_max: 6, r_top: 6, e_fee: 500000 },
            { type:RoomTypes.DEAL, id: 0x368, name: strAmazing+'-6-3', en_class: 'DealRoom', p_max: 6, r_top: 3, e_fee: 1000000 },
            { type:RoomTypes.DEAL, id: 0x668, name: strAmazing+'-6-6', en_class: 'DealRoom', p_max: 6, r_top: 6, e_fee: 1000000 },
            { type:RoomTypes.DEAL, id: 0x369, name: strLegend+'-6-3', en_class: 'DealRoom', p_max: 6, r_top: 3, e_fee: 5000000 },
            { type:RoomTypes.DEAL, id: 0x669, name: strLegend+'-6-6', en_class: 'DealRoom', p_max: 6, r_top: 6, e_fee: 5000000 },
        ]
        for(let i=0;i<this.deal.length;i++){
            let obj = this.deal[i]
            obj.name = LanguageMngTs.getSentence(30)+" " + obj.r_top    //Deal
        }
    }
}
